<template>
	<view class="content">
		<view class="buttom-wrap">
			<view class="buttom" @click="handleLogin(2)">我是学生</view>
			<view class="buttom" @click="handleLogin(1)">我是老师</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			handleLogin(role) {
				console.log("点击", role)
				
				if(role == 1) {
					uni.navigateTo({
						url: '/pages/teacher/login/login'
					})
				} else {
					uni.navigateTo({
						url: '/pages/student/login/login'
					})
				}
				
			}
		}
	}
</script>

<style lang="less">
	.content {
		position: relative;
		width: 750rpx;
		height: 750rpx;
		.buttom-wrap {
			position: absolute;
			left: 50%;
			top: 50%;
			transform: translate(-50%, -50%);
		}
	}
	.buttom {
		width: 300rpx;
		height: 80rpx;
		background-color: #4CD964;
		text-align: center;
		line-height: 80rpx;
		margin-bottom: 20rpx;
	}
</style>
